From be60f017705bde6da77e559977cbecb402bd8a5b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 2 Jan 2014 12:27:31 +0100 Subject: [PATCH] Change Title::isExternal to use strict comparsion Change-Id: Ib4e646f98dc6d17a8cb1ca837dcdc9d48f85e2a7 --- includes/Title.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 0b4b99c800..64cea919d7 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -59,7 +59,7 @@ class Title { var $mDbkeyform = ''; // /< Main part with underscores var $mUserCaseDBKey; // /< DB key with the initial letter in the case specified by the user var $mNamespace = NS_MAIN; // /< Namespace index, i.e. one of the NS_xxxx constants - var $mInterwiki = ''; // /< Interwiki prefix (or null string) + var $mInterwiki = ''; // /< Interwiki prefix var $mFragment; // /< Title fragment (i.e. the bit after the #) var $mArticleID = -1; // /< Article ID, fetched from the link cache on demand var $mLatestID = false; // /< ID of most recent revision @@ -700,11 +700,11 @@ class Title { * @return Bool */ public function isExternal() { - return ( $this->mInterwiki != '' ); + return $this->mInterwiki !== ''; } /** - * Get the interwiki prefix (or null string) + * Get the interwiki prefix * * @return String Interwiki prefix */ -- 2.20.1